<template>
    <TopNavBar title="重置登入密碼" type="back" />
  <div class="reset-page">
    <div class="form-block">
      <label class="form-label">我的帳戶</label>
      <input class="form-input" type="text" v-model="account" placeholder="" disabled />
    </div>
    <div class="form-block">
      <label class="form-label">登入密碼</label>
      <input class="form-input" type="password" v-model="oldPwd" placeholder="請輸入登入密碼" />
    </div>
    <div class="form-block">
      <label class="form-label">新登入密碼</label>
      <input class="form-input" type="password" v-model="newPwd" placeholder="請輸入新登入密碼" />
    </div>
    <div class="form-block">
      <label class="form-label">確認密碼</label>
      <input class="form-input" type="password" v-model="confirmPwd" placeholder="請輸入確認密碼" />
    </div>
    <button class="submit-btn">更改密碼</button>
  </div>
</template>

<script setup>
import { ref } from 'vue'
const account = ref('332211')
const oldPwd = ref('')
const newPwd = ref('')
const confirmPwd = ref('')
</script>

<style scoped>
.reset-page {
  min-height: 100vh;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0 0 0;
}
.form-block {
  width: 90%;
  max-width: 400px;
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  color: #222;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  height: 44px;
  border: 1px solid #e2e4e8;
  border-radius: 24px;
  padding: 0 16px;
  font-size: 14px;
  background: #fff;
  color: #222;
  outline: none;
  box-sizing: border-box;
}
.form-input:disabled {
  background: #f4f6f8;
  color: #aaa;
}
.form-input::placeholder {
  color: #bfc3c9;
}
.submit-btn {
  width: 90%;
  max-width: 400px;
  height: 48px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.2s;
}
.submit-btn:active {
  background: #222;
}
</style> 